<?php 

$scat = get_option('cici_slide_cat');
			$snum =  get_option('cici_slide_num');
			$scat = get_cat_id($scat);
			
			$my_query = new WP_Query('cat='.$scat.'&posts_per_page='.$snum.'');
			$i=1;
            while ($my_query->have_posts()) : $my_query->the_post();		
            $do_not_duplicate = $post->ID;	
			$screen = get_post_meta($post->ID,'slide', true);
			if($i<$snum){
               echo ('{ image :" '.$screen.'"},');} else {
			   echo ('{ image :" '.$screen.'"}');}
			   
			   $i++;
			 endwhile;
			 wp_reset_query(); 
			 
			 ?>

